

$(function(){

load_menu();
get_link_list();

});


function get_link_list(){

    //var api_web_service = ADMIN_APPLICATIONS.api_web_service;
    var api_web_service = ADMIN_APPLICATIONS.get_api_web_service('Routines/DEFAULT_SERVICE');

    $.postJSON(''+api_web_service, {}, {},function(obj){
<<<<<<< HEAD
        alert(obj);
=======

        var _home_gateways_list = '';
        var _home_servers_list = '';
        for(var i=0;i<obj.length;i++){
            var _box_ = $('.info_templates');
            var info = obj[i];

            var link_style_info = $.parseJSON(info.link_style);
            _box_.find('.link_name').text(info.link_name);
            _box_.find('.link_url').attr('href',info.link_url).attr('class',"link_url small-box "+link_style_info.classs);
            _box_.find('.link_url_show').text(info.link_url);

            if(info.link_classId=='0') {
                _home_gateways_list = _home_gateways_list + _box_.html();
            }
            if(info.link_classId=='1'){
                _home_servers_list = _home_servers_list +_box_.html();
            }


            _box_.removeAttr()

        }

        $('.home_gateways .row').append(_home_gateways_list);
        $('.home_servers .row').append(_home_servers_list);


>>>>>>> 62013b63d53665e43bdebbd5b0f235aadbcb71fc
    });
}


